[INFO] cloning repository https://github.com/farawaystar/unsafe_rust_guide
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/farawaystar/unsafe_rust_guide" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffarawaystar%2Funsafe_rust_guide", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffarawaystar%2Funsafe_rust_guide'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] db21ec412b80b4aa84fefd6e9ea03a845e2b8db3
[INFO] checking farawaystar/unsafe_rust_guide against try#a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399 for pr-145770
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffarawaystar%2Funsafe_rust_guide" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/farawaystar/unsafe_rust_guide
[INFO] finished tweaking git repo https://github.com/farawaystar/unsafe_rust_guide
[INFO] tweaked toml for git repo https://github.com/farawaystar/unsafe_rust_guide written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/farawaystar/unsafe_rust_guide on toolchain a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/farawaystar/unsafe_rust_guide already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 71740505d1bd132acbadbe79e6cf8d8b8934dfda39bb4d88f2c076a4a480610b
[INFO] running `Command { std: "docker" "start" "-a" "71740505d1bd132acbadbe79e6cf8d8b8934dfda39bb4d88f2c076a4a480610b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "71740505d1bd132acbadbe79e6cf8d8b8934dfda39bb4d88f2c076a4a480610b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "71740505d1bd132acbadbe79e6cf8d8b8934dfda39bb4d88f2c076a4a480610b", kill_on_drop: false }`
[INFO] [stdout] 71740505d1bd132acbadbe79e6cf8d8b8934dfda39bb4d88f2c076a4a480610b
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a2a6e871b05c7b8ecc9a3c8a20db1f39e995e399" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ed84dabac3740c512488b2367b11ea85ba8d4a3e72babd8d9a69584e5d8b7ef1
[INFO] running `Command { std: "docker" "start" "-a" "ed84dabac3740c512488b2367b11ea85ba8d4a3e72babd8d9a69584e5d8b7ef1", kill_on_drop: false }`
[INFO] [stderr]     Checking safe-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variant `bronze` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `Bronze`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `silver` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Silver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `gold` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^ help: convert the identifier to upper camel case: `Gold`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:20:38
[INFO] [stdout]    |
[INFO] [stdout] 20 |     println!("the value of a is {}", *ptr);
[INFO] [stdout]    |                                      ^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:17:1
[INFO] [stdout]    |
[INFO] [stdout] 17 | unsafe fn wraps_unsafe_code() {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `silver` and `gold` are never read
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | union Win {
[INFO] [stdout]   |       --- fields in this union
[INFO] [stdout] 6 |     bronze: i32,
[INFO] [stdout] 7 |     silver: i32,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 8 |     gold: i32,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `silver` and `gold` are never constructed
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | enum Win2 {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stdout] warning: variant `bronze` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case: `Bronze`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `silver` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Silver`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `gold` should have an upper camel case name
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^ help: convert the identifier to upper camel case: `Gold`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]   --> src/main.rs:20:38
[INFO] [stdout]    |
[INFO] [stdout] 20 |     println!("the value of a is {}", *ptr);
[INFO] [stdout]    |                                      ^^^^ dereference of raw pointer
[INFO] [stdout]    |
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]    = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]   --> src/main.rs:17:1
[INFO] [stdout]    |
[INFO] [stdout] 17 | unsafe fn wraps_unsafe_code() {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `silver` and `gold` are never read
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | union Win {
[INFO] [stdout]   |       --- fields in this union
[INFO] [stdout] 6 |     bronze: i32,
[INFO] [stdout] 7 |     silver: i32,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 8 |     gold: i32,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variants `silver` and `gold` are never constructed
[INFO] [stdout]   --> src/main.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | enum Win2 {
[INFO] [stdout]    |      ---- variants in this enum
[INFO] [stdout] 12 |     bronze(i32),
[INFO] [stdout] 13 |     silver(i32),
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 14 |     gold(i32),
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
[INFO] running `Command { std: "docker" "inspect" "ed84dabac3740c512488b2367b11ea85ba8d4a3e72babd8d9a69584e5d8b7ef1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ed84dabac3740c512488b2367b11ea85ba8d4a3e72babd8d9a69584e5d8b7ef1", kill_on_drop: false }`
[INFO] [stdout] ed84dabac3740c512488b2367b11ea85ba8d4a3e72babd8d9a69584e5d8b7ef1
